//
//  ZYAllSegment.h
//  肥嘟嘟多多
//
//  Created by edz on 2017/12/21.
//  Copyright © 2017年 edz. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LGSegment.h"
@protocol ZYAllSegmentDelegate <NSObject>
@optional
- (void)scrollToPage:(int)page;
@end
@interface ZYAllSegment : UIView
@property (nonatomic, weak) id <ZYAllSegmentDelegate> delegate;
@property(nonatomic, assign) CGFloat maxWidth;
@property(nonatomic,strong)NSMutableArray *titleList;
@property(nonatomic,weak)CALayer *LGLayer;
@property(nonatomic,assign)CGFloat bannerNowX;

-(void)moveToOffsetX:(CGFloat)X;
@end
